package com.example.service.webhook.business.taobao.entity;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liyang
 * @email liyang@51dojo.com
 * @create 2017-10-24 下午3:52
 * @description 淘宝对应支付宝实体
 **/
@JsonIgnoreProperties(value = { "primaryVal", "keyColumns", "tableName" }, ignoreUnknown = true)
public class TaobaoAlipayWealthEntity implements Saveable {
    private long id;
    private String userId;
    private Date createTime;
    private Date lastModifyTime;
    private static final String[] keyColumns = {"id"};
    private static final String tableName = "t_taobao_alipaywealth";

    private String mappingId;

    private Integer balance;

    private Integer totalProfit;

    private Integer totalQuotient;

    private Integer huabeiCreditamount;

    private Integer huabeiTotalcreditamount;

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }

    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public String getMappingId() {
        return mappingId;
    }

    public void setMappingId(String mappingId) {
        this.mappingId = mappingId;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public Integer getTotalProfit() {
        return totalProfit;
    }

    public void setTotalProfit(Integer totalProfit) {
        this.totalProfit = totalProfit;
    }

    public Integer getTotalQuotient() {
        return totalQuotient;
    }

    public void setTotalQuotient(Integer totalQuotient) {
        this.totalQuotient = totalQuotient;
    }

    public Integer getHuabeiCreditamount() {
        return huabeiCreditamount;
    }

    public void setHuabeiCreditamount(Integer huabeiCreditamount) {
        this.huabeiCreditamount = huabeiCreditamount;
    }

    public Integer getHuabeiTotalcreditamount() {
        return huabeiTotalcreditamount;
    }

    public void setHuabeiTotalcreditamount(Integer huabeiTotalcreditamount) {
        this.huabeiTotalcreditamount = huabeiTotalcreditamount;
    }
}
